class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
       t.column :username, :string, :null => false
       t.column :pass_hash, :string, :null => false
       t.column :salt, :string, :null => false
       t.column :house_id, :integer, :null => false
       t.column :admin_priv, :boolean, :null => false
       t.column :desk_priv, :boolean, :null => false
       t.column :rush_priv, :boolean, :null => false
    end
  end

  def self.down
    drop_table :users
  end
end
